<?php
class OrderBoardVo extends SzAbstractMySqlVo
{

    private $userId;
    private $boardId;
    private $progress;
    private $luckyPoint;

    /**
     * Initialize OrderBoardVo.
     *
     * @param $userId
     * @param $boardId
     * @param $progress
     * @param $luckyPoint
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return OrderBoardVo
     */
    public function __construct($userId, $boardId, $progress, $luckyPoint, $isInsert = false) {
        $this->userId = $userId;
        $this->boardId = $boardId;
        $this->progress = $progress;
        $this->luckyPoint = $luckyPoint;

        $this->isInsert = $isInsert;
        $this->voClassName = 'OrderBoardVo';
        $this->ormName = 'OrderBoard';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'boardId' => $this->getBoardId(),
            'progress' => $this->getProgress(),
            'luckyPoint' => $this->getLuckyPoint(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'boardId' => $this->getBoardId(),
            'progress' => $this->getProgress(),
            'luckyPoint' => $this->getLuckyPoint(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getUserId(),
            $this->getBoardId(),
            $this->getProgress(),
            $this->getLuckyPoint(),
        );
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(0, $this->userId);
        $this->userId = $val;
    }

    public function getBoardId()
    {
        return $this->boardId;
    }

    public function setBoardId($val)
    {
        $this->saveColumnStatus(1, $this->boardId);
        $this->boardId = $val;
    }

    public function getProgress()
    {
        return $this->progress;
    }

    public function setProgress($val)
    {
        $this->saveColumnStatus(2, $this->progress);
        $this->progress = $val;
    }

    public function getLuckyPoint()
    {
        return $this->luckyPoint;
    }

    public function setLuckyPoint($val)
    {
        $this->saveColumnStatus(3, $this->luckyPoint);
        $this->luckyPoint = $val;
    }

}